#ifndef RECTANGLE_H
#define RECTANGLE_H

#include "Vector2D.h"

class Rectangle 
{
public :
	Rectangle(const float x, const float y, const float width, const float height);
	Rectangle(const Vector2D &topLeft, const Vector2D &btmRight);
	bool Contains(const float x, const float y) const;
	bool Contains(const Vector2D &point) const;
	// change rien dans cette objet.  private(x, y, width, height)    "const de fin"
	float GetX() const {return x;}
	float GetY() const {return y;}
	float GetWidth() const {return width;}
	float GetHeight() const {return height;}
	void SetPosition(const Vector2D &vect);
	void SetPosition(const float x, const float y);
	void MoveBy(const Vector2D &vect);
	void MoveBy(const float x, const float y);
	bool CollidesWith(const Rectangle &rect) const;

private:
	float x;
	float y;
	float width;
	float height;
};

#endif